Skip to main content

msg

Type​

keyword

Summary​

A special global variable that is used with the put command when no other destination container is specified.

Syntax​

msg

Description​

When msg is modified by a command the msgChanged message is sent to the object that modified it. If the msgChanged message is unhandled or passed then the value of msg will be written to the system log or in no ui mode (command line) to stdout.

In LiveCode IDE msg and the msgChanged message are used to implement the message box.

Examples​

-- set msg to foobar
put "foobar"
put "baz" after msg

command: put

glossary: keyword, global, variable, message

keyword: stdout

message: msgChanged

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

web

Platforms

desktop

mobile

Thank you for your feedback!

Was this page helpful?